package com.itqianfeng.smartmeeting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itqianfeng.smartmeeting.entity.Booking;
import com.itqianfeng.smartmeeting.entity.vo.MyBooking;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookingMapper extends BaseMapper<Booking> {
    List<MyBooking> getMyBooking(@Param("userId") Integer userId);
    Integer isBooking(@Param("roomId") Integer roomId,@Param("startTime")String startTime,@Param("endTime")String endTime);
}
